package com.zhw.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SystemController {
	//Value注解的值，为配置文件里，配置的key值。例如配置文件的内容为： key=value
	@Value("${spring.rabbitmq.host}")
    String foo;
	@Value("${spring.rabbitmq.port}")
	String message;
    @RequestMapping(value = "/hi")
    public String hi(){
        return foo+"==="+message;
    }
}
